function createSilverlight()
{
    var controlID = "SilverlightControl";
	Silverlight.createObjectEx({
		source: "Page.xaml",
		parentElement: document.getElementById("SilverlightControlHost"),
		id: controlID,
		properties: {
			width: "100%",
			height: "100%",
			version: "1.1",
			isWindowless: "True",
			background: "#00FFFFFF"
		},
		events: {}
	});
	
	// Give the keyboard focus to the Silverlight control by default
	document.body.onload = function() {
		var silverlightControl = document.getElementById(controlID);
		if (silverlightControl)
			silverlightControl.focus();
	}
}
